﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace com.dtn.deals
{
    public interface Itbl_Categorymanager
    {
        int inserttbl_Category(tbl_Category cate);
        bool updatetbl_Category(tbl_Category cate);
        bool Deletetbl_category(int cateID);
        DataTable Selecttbl_CategoryWithPageDynamic(int StartIndex, int MaxRecords, string Where);
        DataTable Selecttbl_CategoryDynamic(string Where, string order);
        DataTable SelectAllSubCateWithPageDynamic(int index, int PageSize, string where);
        DataTable SelectAllSubCateByCateIDAndPaging(int index, int pageSize, string Where);
        tbl_Category SelectCateById(int id);
        bool IsExistedSubCateByCateID(int cateId);
        DataTable countTimeandDealByCategory(int catId);
    }
}
